package com.rahms.common.constant;

/**
 * 系统消息常量类
 * 包含系统中使用的所有消息文本常量
 */
public class MessageConstant {

    // 认证与登录相关
    public static final String PASSWORD_ERROR = "密码错误";
    public static final String ACCOUNT_NOT_FOUND = "账号不存在";
    public static final String ACCOUNT_DISABLE = "账号已禁用";
    public static final String UNKNOWN_ERROR = "未知错误";
    public static final String USER_NOT_LOGIN = "用户未登录";
    public static final String LOGIN_SUCCESS = "登录成功";
    public static final String LOGOUT_SUCCESS = "退出成功";
    public static final String REGISTER_SUCCESS = "注册成功";
    public static final String UNAUTHORIZED_ACCESS = "未经授权的访问";
    public static final String TOKEN_EXPIRED = "令牌已过期";
    public static final String INVALID_TOKEN = "无效的令牌";

    // 用户管理相关
    public static final String USER_ADD_SUCCESS = "用户添加成功";
    public static final String USER_UPDATE_SUCCESS = "用户信息更新成功";
    public static final String USER_DELETE_SUCCESS = "用户删除成功";
    public static final String USER_NOT_EXIST = "用户不存在";
    public static final String USERNAME_EXISTS = "用户名已存在";
    public static final String PHONE_EXISTS = "手机号已存在";

    // 老人信息管理相关
    public static final String ELDERLY_ADD_SUCCESS = "老人信息添加成功";
    public static final String ELDERLY_UPDATE_SUCCESS = "老人信息更新成功";
    public static final String ELDERLY_DELETE_SUCCESS = "老人信息删除成功";
    public static final String ELDERLY_NOT_EXIST = "老人信息不存在";
    public static final String ELDERLY_NOT_BELONG = "老人信息不属于当前用户";

    // 药品管理相关
    public static final String MEDICATION_ADD_SUCCESS = "药品添加成功";
    public static final String MEDICATION_UPDATE_SUCCESS = "药品信息更新成功";
    public static final String MEDICATION_DELETE_SUCCESS = "药品删除成功";
    public static final String MEDICATION_NOT_EXIST = "药品不存在";
    public static final String MEDICATION_NOT_BELONG = "药品不属于当前用户";

    // 用药计划相关
    public static final String PLAN_ADD_SUCCESS = "用药计划添加成功";
    public static final String PLAN_UPDATE_SUCCESS = "用药计划更新成功";
    public static final String PLAN_DELETE_SUCCESS = "用药计划删除成功";
    public static final String PLAN_NOT_EXIST = "用药计划不存在";
    public static final String PLAN_ALREADY_STOPPED = "用药计划已停止";
    public static final String PLAN_CONFIRM_SUCCESS = "用药确认成功";

    // 健康数据相关
    public static final String HEALTH_DATA_ADD_SUCCESS = "健康数据记录成功";
    public static final String HEALTH_DATA_UPDATE_SUCCESS = "健康数据更新成功";
    public static final String HEALTH_DATA_DELETE_SUCCESS = "健康数据删除成功";
    public static final String HEALTH_DATA_NOT_EXIST = "健康数据不存在";

    // 消息与公告相关
    public static final String NOTIFICATION_SEND_SUCCESS = "消息发送成功";
    public static final String NOTIFICATION_READ_SUCCESS = "消息已标记为已读";
    public static final String NOTIFICATION_NOT_EXIST = "消息不存在";
    public static final String ANNOUNCEMENT_PUBLISH_SUCCESS = "公告发布成功";
    public static final String ANNOUNCEMENT_UPDATE_SUCCESS = "公告更新成功";
    public static final String ANNOUNCEMENT_DELETE_SUCCESS = "公告删除成功";
    public static final String ANNOUNCEMENT_NOT_EXIST = "公告不存在";

    // 文件操作相关
    public static final String FILE_UPLOAD_SUCCESS = "文件上传成功";
    public static final String FILE_UPLOAD_FAILED = "文件上传失败";
    public static final String FILE_DELETE_SUCCESS = "文件删除成功";
    public static final String FILE_NOT_EXIST = "文件不存在";
    public static final String FILE_FORMAT_ERROR = "文件格式错误";
    public static final String FILE_SIZE_EXCEED = "文件大小超过限制";

    // 数据验证相关
    public static final String PARAM_IS_NULL = "参数不能为空";
    public static final String PARAM_IS_INVALID = "参数无效";
    public static final String DATA_NOT_FOUND = "数据不存在";
    public static final String DATA_ALREADY_EXISTS = "数据已存在";

    // 操作结果相关
    public static final String OPERATION_SUCCESS = "操作成功";
    public static final String OPERATION_FAILED = "操作失败";
    public static final String SAVE_SUCCESS = "保存成功";
    public static final String SAVE_FAILED = "保存失败";
    public static final String DELETE_SUCCESS = "删除成功";
    public static final String DELETE_FAILED = "删除失败";
    public static final String UPDATE_SUCCESS = "更新成功";
    public static final String UPDATE_FAILED = "更新失败";
    public static final String QUERY_SUCCESS = "查询成功";
    public static final String QUERY_FAILED = "查询失败";

    // 系统相关
    public static final String SYSTEM_ERROR = "系统错误";
    public static final String NETWORK_ERROR = "网络错误";
    public static final String DATABASE_ERROR = "数据库错误";
    public static final String SERVICE_UNAVAILABLE = "服务不可用";
    public static final String REQUEST_TIMEOUT = "请求超时";

    // 权限相关
    public static final String PERMISSION_DENIED = "权限不足";
    public static final String ROLE_NOT_EXIST = "角色不存在";
    public static final String NEED_ADMIN_ROLE = "需要管理员权限";
    public static final String NEED_FAMILY_ROLE = "需要家属权限";

    // 导出相关
    public static final String EXPORT_SUCCESS = "导出成功";
    public static final String EXPORT_FAILED = "导出失败";

    // 提醒相关
    public static final String REMINDER_SENT = "提醒已发送";
    public static final String REMINDER_MISSED = "用药漏服提醒";
    public static final String REMINDER_CONFIRMED = "用药已确认";
}
